@extends('layouts.app')

@section('content')

    <div class="vertical-push-50"></div>

    <div class="auth-page-view">
        <div class="container">
            <div class="row">
                <div class="col-xs-12 col-md-4 col-md-offset-4">
                    <form class="password-reset-form" role="form" method="POST" action="/admin/password/email">
                        {!! csrf_field() !!}

                        <div class="form-header page-header text-center">
                            <h3>重置密码</h3>
                        </div>

                        @if (session('status'))
                            <div class="alert alert-success">
                                {{ session('status') }}
                            </div>
                        @endif

                        <div class="form-group {{ $errors->has('email') ? 'has-error' : '' }}">

                            <input id="email" type="email" class="form-control" name="email" value="{{ old('email') }}" placeholder="您的邮箱" required>

                            @if ($errors->has('email'))
                                <span class="help-block">
                                    <strong>{{ $errors->first('email') }}</strong>
                                </span>
                            @endif
                        </div>

                        <div class="form-group">
                            <button type="submit" class="btn btn-primary btn-block">
                                <i class="fa fa-btn fa-envelope"></i> 发送密码重置链接
                            </button>
                        </div>

                        <p>
                            <a href="/admin/login">返回登录</a>
                        </p>

                    </form>
                </div>
            </div>
        </div>
    </div>
@endsection
